package com.example.exceltosqlite.ui.sqldao;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.example.exceltosqlite.R;
import com.example.exceltosqlite.entity.SqliteFileEntity;

import butterknife.BindView;
import butterknife.ButterKnife;


public class SpinnerFileItemview extends LinearLayout {

    @BindView(R.id.text00TV)
    TextView text00TV;
    @BindView(R.id.text01TV)
    TextView text01TV;
    @BindView(R.id.text02TV)
    TextView text02TV;
    @BindView(R.id.text03TV)
    TextView text03TV;
    @BindView(R.id.text04TV)
    TextView text04TV;
    @BindView(R.id.text05TV)
    TextView text05TV;
    @BindView(R.id.text06TV)
    TextView text06TV;
    @BindView(R.id.text07TV)
    TextView text07TV;
    @BindView(R.id.text08TV)
    TextView text08TV;
    @BindView(R.id.text09TV)
    TextView text09TV;
    private Context context;


    public SpinnerFileItemview(Context context) {
        super(context);
        this.context = context;
        LayoutInflater.from(context).inflate(R.layout.spinner_file, this);
        ButterKnife.bind(this);

    }

    public void bind(SqliteFileEntity item) {
        text00TV.setText(item.getCol00());
        text01TV.setText(item.getCol01());
        text02TV.setText(item.getCol02());
        text03TV.setText(item.getCol03());
        text04TV.setText(item.getCol04());
        text05TV.setText(item.getCol05());
        text06TV.setText(item.getCol06());
        text07TV.setText(item.getCol07());
        text08TV.setText(item.getCol08());
        text09TV.setText(item.getCol09());

    }

}
